# Find installed ulapack

# find include path
find_path(ulapack_INCLUDE_DIR
   NAMES
      ulapack/cholesky.hpp
      ulapack/errormacros.hpp
      ulapack/lapack_exception.hpp
      ulapack/lufactor.hpp
      ulapack/printmatrix.hpp
      ulapack/scalar_fill.hpp
      ulapack/symmetry.hpp
   DOC "ulapack include path"
)

set(ulapack_INCLUDE_DIRS ${ulapack_INCLUDE_DIR})
set(ulapack_LIBRARIES)

if (ulapack_INCLUDE_DIR)
   set(ulapack_FOUND TRUE)
   if (NOT ulapack_FIND_QUIETLY)
      message (STATUS "Found ulapack: ${ulapack_INCLUDE_DIR}")
   endif()
else()
   set(ulapack_FOUND FALSE)
   if (ulapack_FIND_REQUIRED)
      message(FATAL_ERROR "Could not find ulapack")
   endif()
endif()
